home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import flash.display.Sprite;
-
- public class EnemyManager extends Sprite
- {
-
-
- private var §\x01\x01\x02\t§:* = null;
-
- internal const DRAGONHEIGHT:* = 600;
-
- internal const DOC_MIDV:* = 200;
-
- internal const DRAGONINITY:* = 60;
-
- internal const DOC_HEIGHT:* = 400;
-
- internal const DRAGONINITX:* = 0;
-
- internal const DRAGONATTACKUPPER:* = 2;
-
- public var theKnight:*;
-
- private var §\x01\x01\x06\r§:* = null;
-
- internal const DRAGONWIDTH:* = 700;
-
- internal const DOC_QUARTI:* = 160;
-
- internal const DOC_TOP:* = 0;
-
- internal const DRAGONATTACKBITE:* = 4;
-
- internal const DRAGONATTACKBLAST:* = 1;
-
- private var §\x01\x01\x04\x0e§:Boolean = false;
-
- private var §\x01\x01\x03\x0e§:*;
-
- internal const DOC_WIDTH:* = 640;
-
- internal const DRAGONATTACKFIRE:* = 3;
-
- internal const DOC_LEFT:* = 0;
-
- public var theDragon:* = null;
-
- internal const DRAGONHIDE:* = 0;
-
- internal const DOC_MIDH:* = 320;
-
- internal const DOC_QUARTII:* = DOC_MIDH + DOC_QUARTI;
-
- public function EnemyManager(param1:*, param2:*, param3:*)
- {
- §\x01\x01\x04\x0e§ = false;
- §\x01\x01\x02\t§ = null;
- §\x01\x01\x06\r§ = null;
- theDragon = null;
- super();
- §\x01\x01\x02\t§ = param1;
- §\x01\x01\x06\r§ = param2.GetSceneContainer();
- §\x01\x01\x03\x0e§ = param3;
- }
-
- public function StopGame() : *
- {
- §\x01\x01\x07\x05§();
- }
-
- public function StartGame() : *
- {
- theKnight = §\x01\x01\x03\x0e§.mainChar;
- §\x01\x01\x07\x04§();
- }
-
- private function §\x01\x01\x07\x04§() : *
- {
- §\x01\x01\x07\x05§();
- theDragon = new dragon();
- theDragon.Init(§\x01\x01\x02\t§,§\x01\x01\x06\r§,this);
- theDragon.x = DRAGONINITX;
- theDragon.y = DRAGONINITY;
- theDragon.width = DRAGONWIDTH;
- theDragon.height = DRAGONHEIGHT;
- §\x01\x01\x06\r§.addChild(theDragon);
- §\x01\x01\x06\r§.setChildIndex(theDragon,0);
- §\x01\x01\x06\r§.setChildIndex(theKnight,1);
- }
-
- private function §\x01\x01\x07\x05§() : *
- {
- if(theDragon)
- {
- theDragon.Destroy();
- §\x01\x01\x06\r§.removeChild(theDragon);
- theDragon = null;
- }
- }
- }
- }
-